package _19define;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String a=sc.nextLine();
        StringBuffer b=new StringBuffer(a);
        b.reverse();
        String c=b.toString();
        System.out.println(a.equals(c));
    }
}
